package com.logistics.modules.warehouseManagement.dao;
import java.util.List;

import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Param;

import com.logistics.modules.warehouseManagement.entity.RepositoryEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

/**
 * 
 * 
 * @author HURRICANE
 * @email HURRICANE@nb.com
 * @date 2022-05-07 10:44:16
 */
@Mapper
public interface RepositoryDao extends BaseMapper<RepositoryEntity> {


    /**
     * 选择一个通过id
     *
     * @param id id
     * @return {@link RepositoryEntity}
     */
    RepositoryEntity selectOneById(@Param("id") Integer id);

    IPage<RepositoryEntity> selectAllByRepositoryName(@Param("page") IPage<RepositoryEntity> page,
                                                      @Param("repositoryName") String repositoryName,
                                                      @Param("repositoryAddress") String repositoryAddress);

    List<RepositoryEntity> selectAllByStoreAddress(@Param("storeAddress") String storeAddress);

	
}
